package IC.asm.decl;

import IC.asm.ASMEntry;
import IC.asm.Visitor;

public class ASMDecl extends ASMEntry {
	private String name, value;
	
	/**
	 * @param name
	 * @param value
	 */
	public ASMDecl(String name, String value) {
		this.name = name;
		this.value = value;
	}

	/**
	 * @param name
	 */
	public ASMDecl(String name) {
		this.name = name;
		this.value = null;
	}
	
	/**
	 * @return the value
	 */
	public String getValue() {
		return value;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	@Override
	public <D, U> U accept(Visitor<D, U> v, D context) {
		return v.visit(this, context);
	}
}
